-module(hello).
-export([hello/0]).
-export([stopwatch/1]).
-export([stopwatch2/1]).

hello() -> io:format("hello world~n").

stopwatch(0) -> io:format("...~n");
stopwatch(X) when X > 0 -> 
				io:format("~w~n", [X]),
				stopwatch(X-1);
stopwatch(X) when X < 0 ->
				io:format("~w~n", [X]),
				stopwatch(X+1).

				
stopwatch2(X) ->
		if 
			X == 0 ->
				io:format("...~n");
			X > 0 ->
				io:format("~w~n", [X]),
				stopwatch2(X-1);
			X < 0 ->
				io:format("~w~n", [X]),
				stopwatch2(X+1)
		end.